package com.jt;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
public class SpringAplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringAplication.class,args);

    }
    
@RestController
    public  class   Mapping{
    @Value("${server.port:8080}")

    private String server;
    //localhost:8081/user/acho
    @GetMapping("/user/acho/{msg}")
    public String test1(@PathVariable String msg){
        return server+"test1测试";
    }
    }
    }